<?php
include("../../tools/session.php");
include("../../tools/controls.php");
include("../../conf.php");
include("../../tools/pub.php");

// 如果登录失败、无权限访问，那么采取相应措施
if (!($is_login_success === true)) { session_hop_page("../index.php"); exit(); }
if (!power_check(0)) { include("tpl-inc-wp.php"); $tpl->display($oa_tpl_path . "/no-power.html"); exit(); }

/*-- 以下是实际内容 --*/
include("../../tools/mysql.php");
include("tpl-inc-wp.php");
db_connect();

$sql = "SELECT pvalue FROM oa_pars WHERE pname='version'";
$re = db_query_once($sql);

$tpl->assign("version", $re["pvalue"]);
$tpl->display($oa_tpl_path . "/default/frames.html");
?>
